package com.hl.sfzy.controller.wxwappController;

import com.hl.sfzy.entity.wxwapp.CourseTeacher;
import com.hl.sfzy.service.wxwappService.CourseTeacherService;
import com.hl.sfzy.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @className: CourseTeacherController
 * @author: WXW
 * @date: 2024/9/5 15:26
 * @Version: 1.0
 * @description:
 */
@RestController
@RequestMapping("/courseTeacher")
public class CourseTeacherController {
    @Autowired
    private CourseTeacherService courseTeacherService;

    @GetMapping("/selectAllTeacher")
    public R selectAllTeacher(Integer pageNo, Integer pageSize) {
        List<CourseTeacher> teachers = courseTeacherService.findAllTeacher(pageNo,pageSize);
        return R.success(teachers);
    }
}
